package com.csf.dao;

import com.csf.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
public interface UserMapper {

    //根据用户ID 查找
    User findUserById(int id);

    //根据用户姓名查找
    User findUserByUsername(String username);

    //根据用户的Email进行查找
    User findUserByEmail(String email);

    //存储用户
    int InsertUser(User user);

    //修改状态
    int updateStatus(int id,int status);

    //更改头像
    int updateHeader(int id,String headerUrl);

    //更改密码
    int updatePassword(int id,String password);

}
